projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00153af
)
x86: Fix time going backwards on CPU frequency change.
author
Keir Fraser
<keir@xensource.com>
Mon, 1 Oct 2007 08:32:25 +0000
(09:32 +0100)
committer
Keir Fraser
<keir@xensource.com>
Mon, 1 Oct 2007 08:32:25 +0000
(09:32 +0100)
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/time.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/time.c
b/xen/arch/x86/time.c
index 7b23426c6e162565e69ae8655444f72ef0236cd3..d0f45fb0184e669c8ccd2cf0d0eaad7fcc996dcf 100644
(file)
--- a/
xen/arch/x86/time.c
+++ b/
xen/arch/x86/time.c
@@
-728,11
+728,11
@@
int cpu_frequency_change(u64 freq)
u64 curr_tsc;
local_irq_disable();
- set_time_scale(&t->tsc_scale, freq);
rdtscll(curr_tsc);
t->local_tsc_stamp = curr_tsc;
t->stime_local_stamp = get_s_time();
t->stime_master_stamp = read_platform_stime();
+ set_time_scale(&t->tsc_scale, freq);
local_irq_enable();
/* A full epoch should pass before we check for deviation. */